for loop added back