add check bracket match