weights decoding