graph now debugged