added types within writestmtnode