removed useless ternary operation