added metadata tree to store original number of events