added new bracket matching