simplified the compare