main update