swap steps 5, 6