invert dirty() method.