use simpler versions of er/mark-inside(outside)-pair