trying to abstract the compare tool