first version of get domain distribution