CHART function added