detecting node or not