srcResidence function