speedup matching by reload isInNet function