complete func check_res_update