added preprocess function for nodes
preprocess function adjusted