removed leaf and node functions for now