updating static variables