added weigths to lines