code sync and updating of comparison method