prepare for adjustment to getOrInsertFunction method