update dirty bit