optimizing getContestants