fixed bug and checked no false positives