finally got Bellman Ford correct