prepare function documentation