update movement speed.