basic loop added.