ternary to the rescue!!!!!!