change index for next_due