implement step 6