update last smile save algorithm