rminimizer modifications