optimize
optimize gauge.deterministic