passing lambda_min and lambda_max