started building foreach loop