more edits to linegraph code