function documentation patch