removed comments, added for_each