made choosing the high/low/equal colors a bit more robust