add function for getting contacts