*add: function which checks if detection is right