updated optimizer for test