implement a lookup method