align weight group with other groups

align weight group with other groups and format the code