draw graph ok