relocate some variable definitions.