shortened G() function, renamed lambda to lambda_tuple