adding lagrange