check file types with lowercase