refactoring: concatenate transLeaf and transLeafS