adding fixes for new weights to w estimation