added ternary and equals accessors