add classes for resoving weight edge