better way to get distribution name