generating links from top down instead of bottom up. averaging mean lines is no longer working. lines are slanting down when initialized
build