fixed table issues, silly handy don't close table inside while loops...