robustness against data format inconsistency