use the correct type depends on stanza