break up ternary expression