simplefy the render method