internalfunction factory fix