change setpoint function