add node creation from an array