working parser for lambda functions