fixed problems with false positives and negatives