added beginnings of a helper to scan collections