removed double ternary