first draft of logP_G_lambda_d completed