write out model data