task2: refactoring
removed dead code using UCDetector