renaming file according to content