docstrings for collect and uniquify