changed compareTo method so associations will compare good