adding some smarter ways to see the table , still not working