started refining the optimizer