renaming files and fixing error with skip