setting restore to true