added dt.stats function