add drawGraph