initialize medium when exist in model