improved compareTo() readability