add boolian flage to avoid notify in case of invalid slice