deleted old bracketMatching