edit
newERICMP function