added cod method
added cod method