finished first iteration of the program