remove unecessary ternary