added variable for min deviation from exp