avoid lambda function