Changed lambda_x to lambda_f