updating modes