simplify guage delta code