add detect feature