get extension of files