now computes average entropy correctly