auto detect complete