renaming file due to error