Change list to array