add graphical definition
remove debugging stuff