fixes #255 converted the assigned collector from char to function