prepare for new mode