be able to draw graph