linegraph finally working