working on graphs (still not working)