added using namespace to functions in headers