fixed up function for getting list of friends to invite