translate to MVC