implemented a simple lookup method