adding lookup functionality