how restrore() works clarification