extracted and refactored method to generate report