added render_index