@danse, why define `g` if it's not used?