changes for factory reset