checkModified for closure