Yes! Thats what I meant, thanks a lot; Now the follow up question is how can I swap the variables to minimize, for instance in your snippet if you do /.x->a it would change x to a everywhere, but what if I have a multivariable function to minimize and I want to add or take variables away (not just change them) so for instance:
min[f_] := Minimize[f[x,y,z], x,y,z];
what if id want to, for instance change x to a and not use the other 2, so Id want to get:
min[f_] := Minimize[f[a], a];
out of calling the previous function, because otherwise I have to redefine everything in the minimize function again since it will complain that it cant find the other variables.