prepare for unmatched brackets