delete unnecessary code, change merge in helper