changed parameters for x and y variables