updated performConnection