added ternary