resolve bracket error