minor optimization (kill a dumb ternary)