renamed step 6