added list merging mechanism