check proper file