remove ternary operators