update equation