update
modify the render function