better selected value comparison