merging two systems