added graphical output