added the report functionality