added print commands for each loop iter