improved constrained optimization in maximization step