using multipart functions via lambda.r