bug squashing on dist functions