added printing weight functions