wasgreedy method added for eligibility