add_node function

add a pre-processing stage