foreach better style