changes to compareTo