adding iterator to package.json