updated lagrange