added call checkDirty