added a parameter to isModified functions