finished updating for 2nd order