change the frequency to update the speed