added code for log data descriptive stats