condense the packing table in set_rdata a little