2 graphs working
fixed a bug