remove redundant compare, add comment