completed the first iteration