save and load the type of Space