adding bracket to polish notation output