fixing errant ternary