needed to use compareTo