working on the graphical output