optimizations

variable iterations for variance minimizer