changing serial mode