finish the comparison