checking file format