legend/data comparison recoded