test loop added