new versions on both randomized and nonrandomized problems