add compare() to cleanup code