fixes some distribution problems