update buildCopad function in ME21