updated optimizer again