fix brackets and single quotes