made the movement a little more smooth