use a foreach