modify struct of ecmp