changed addSpaceObject method