update last entry