fixed the high water mark functionality.