replace old bracket matcher