implement sentence tree input