up to iteration 5