remove unneeded resources