change contacts to return array of references instead since we can have multiple contacts with the same name