updating iteration 3