few changes to compare functionality