write new core