foreach step 4