removed checkBrackets function and its usage, fixed seqfault when not checking these brackets instead.