make speed toggle work