applyModifications