Added helper function
merge