modified ec_merge