Changed the function name "cofactors" to "cof" and propagated the function