protect against invalid input files, also round weighted data event yields