create diiffent node types based on String Parameter