add plotting functionality