changing between dynamic and static modes