latest code with inet type