aalog, and changed compareTo