creating a resident