implementing search table