changed lambda fumction