new r minimization tools