some modifications to sparse pack