added function doOperatorStackRewinding and motified evaluate