fix paren balance