minor changes to compare