added columnize method to transform array data