change the render method