output routines for data analysis