update reconnect method