change leaf to child