main_fun updated