added ternaryOperator