remove useless objects