write table