made maximization step significantly faster