coudl maybe this put in, at least, a local private static member function ?