add funtionality to loop module