it cap unused function deleted and chart fixed