use correct compairsion where it makes sense