get_main_list in seperate function.