value-comparison code consistency