change file extension to syntax correctly