optimizing slowly