fix brackets formatting