small edits in replaceecodes2