add docs/function