How to change a connection