clean up looping
clean up looping