removal of unneeded resources