added  'MERGE and 'SEPARATE functions