update of bool checkConnect()