adjusting friction and acceleration