made the downloadTable method