add all function to loop class