optimization of auto detection