simplifying node test