unnecessary ternary operator