add compare items method