Changed to ternary