updated gauges code