Foor loop added