finishing up the addNamespace function.