merging side effect solved