updated fenwick