"foreach" added