added redo indices for record_demo