backing correct files and removing unnecessary files