cavity detection