edit todo
refactoring: change name from transLeaf to check