better newConnection cheking