Gauges functional