resample now makes weights uniform
removed hack