turn packages into array