removed redundant entropy function for Chi