improved compute_significances