buggy tree construction