replacing generic lookup by lookupFunction