state restoration part 1