added better handling of digital gauge