docstring in trirefine