Fixing the return type of the lookupB operation