changed to accept collection of challenges instead of a single one