shortened and sped up render_row