add graph drawing code