write new function bracket2exact