treat arguments for \begin and \end as parts of the pairs