added createEach method