added/fixed edge weights