checking file types