graph displayed but with memory issue