reverse stack order in update stack