change connection method