setting default values for complex objects