tidy up alll resources and delete irrelavent things