update last id