fix bracketing