make thresholds compatible to void*