generalize x,y position