up to iteration 6