added new methods for calculating the threshold in the DV