edge cases of brackets handled.