added cod method