for Hungarian alg.