added the struct from main.c back in and moved all the tables back into the main function