moving functions outside of namespace curly brackets