change ternary operator