example weight updates