checking membership correctly

is tests for object identity, but == tests for object value equality