correct auto detect