restores state\!