update to mode