set x and y