stack created for brackets