fixing list increasing bug and update c++