please add a comment describing how x and y map to the function parameters.