fixing logic on checking for real nodes