some minor edits to sparse pack