tweaked some thresholds for better performance