fixed output node, replaced type strings with numbers