set speed only when needed