modify connection procedure