added funcitionality for searching keys