made changes to iterations