residence qualifications