create modules for compare_loop