check file type
check file type final