add render_area function