work on migration (set null hid)