added form for maxmin alg