using global id for buffer packing