a function for combining integer arrays already existed