convert label to array