both graphs now working