implemented cur_res