added comments to mediator