proper file input