detained imi