updating documentation, and wrapping in anonymous