Update weighted and non-weighted