merge closures