playing around with ternary conditions