update modes