modify add_history.sh