added a compare function - something must be wrong