adding file extension to the new file name