minor typos in optimization