revert locals