graph works with 0 total now