simplified variance minimizer for speed