fix indentation
remove duplicate test
use step_func
s/3/Node.TEXT_NODE/