changed to w_ave