compact repr. of weights