fixed Bellman-Ford, cleanup