for loop and forEach loop added