use Point instead of x and y