added applyOnUpdate