build_rep: near, cdf: rep & res_time