removing unused objects