added debug to chart