change class detection mode