fix internal function documentation