adding layerType to node, for layer generation