code cleanup: moved static definitions to tgb.cc