temporary hack for bellman ford