added collection param, update documentation