add gauges code