renaming format to extension