documented captured functions