modifying CollectionUtils to be more generic with Iterable
refactor qid string list to be more efficient