fill in the lambda functions