change mode as well