add second unpacking method for n-d histogram