now graph is working