docstring for fold