Added close brackets and match brackets