markModified should be public