add resetGraph