remove unecessary resources