get filetype method added