can't you pass the Set directly instead?