changed avgPower() to property for optimization