check for node first