fixed input variables for GetY and XData functions
changes inputs for GetY and XData functions
changes of inputs for step 2