commit the complex objects