add autoCompare feature