make variable movingSpeed