only keep 2 graphs in history
only keep 2 graphs in history