working dewall merge for single merge