added an extension to a file