graph is now working