added the function getFileType()