updated gains and speed