anonymous function does not know about text