Changed update equation to Joseph form