remove dead objects from memory