fixed a small bug: unbalanced brackets