change mode and name.