No matter the height always detect player if nearby

I made an armour stand that, detects if a player is nearby with [distance=..4] and then runs a command. it works when I am nearby the armour stand, but I want it to work no matter the height the player is at, basically I want it to only detect the distance of the X and Z
Continue to help post