added report functionality.