add same name subpattern support