residency conversion rules