use foreach syntax where applicable