change averageValue() signature