you defined `a` above -- you should use it here rather than recomputing the row_list() every time, I think.