start using coordinate objects instead of separate x and y parameters