added categorize_payors function