package to array