add ternery conditional parsing