chart function changes