revert changes in script