add debug to visualize