adapt detection