change lookup to allocate