extracted sequence node creation to helper method