revert portion of optimizer does not work