delete useless objects