use closure instead of cmd
merge