upate connection