update for last entry to be index 0