added model and mediator