compare col to get the result