fixing name error in connection