some code changes related to chart