removing useless objects