compare and tooltip