writing packing-indeces