the rendering code you asked for