Update history.cpp