define collection into callback