removed redundant parameter in updateConnection()