adding tableNet function.  optimized isKey