re write table demo