add ? : ternary operator