prepared tables for searching