improved exception message in Node class