move function declaration to namespace (scope-)level