confirm file type