changes made to check theto see the output after the first loop