refactoring : use struct for static variables.