both graphs working