checkDirty