revert direct stack manipulation