don't make optional flag part of the equality calculation