changed variable names to x and y