add a conditional segment holding the $?