group weight.
Remove unneeded var.
Format