slight change in for_each