finish cooper alg for idom