remove unnecessary invalidations