tackeling the array merge problem thingy