residency determination