remove any unnessary resources