fixing up array