update tree API annotation