removed a line for checking connection status