read leaf type