read in and merge data