renaming and removing unnecessary files