replcae average_value