wrote applyToDefaults method doc