changed lineargraph functionality