save type to node