fixed bracket matching error