final revision to step 3 (which includes swapping 3 and 4)