fixing the lambda issue