added a dirty flag