step 3 flatten