removed the compareIterations and changed it to iterations