changed bonds to distances, because that's really what they are