changing the connection type