optimization of a variable