determine eligibility