modify global struct