trying a foreach loop