refactor method is_eligible_for_renew
forgot an end