fixed ternary operators