found a better(proper) way to disable invalidation