single for loop added. end of story added