pre10 support function as a lambda