document admin function