update weighted