analysis of n pairs parenthese