begin optimizing