upgrade to TTree