merging of arrays