updating last with initial index