moved contact and contacts to closure scope