change direction and fold