implemented voting thresholds