handle multiple distributions