dominator alg works