creating output node - to be checked for errors