implementation of bento box searching.