added key table and search