changed to 3 iterations