add equality comparison

test plan: none