g can be referenced in templates