implemented and tested lookup