ensure function tables