F: improve gauge calculation