change constructor signature for SubstanceNode, use it in StackNode