restores working state