fix typo
average of max