added setter for spacecraft