changing threshold
fixed tests