changing rassert to guarantee to detect corrupted data files