added arrow operator as lambda function