fixing file type