convert old style array to new style ([])