add accumulation and mean_price func (but mean_price correct or not ?)