segment delete and relocation working