add brackets in expressions