delete useless res