simplify <variable> parsing