tree input