return the factories to their original state.