add helper function to determine voter eligibility and curric_code