add two methods to merge data and merge list