moved tables to globals

redefining that every time would make it slow down a lot you'd think.
still can't tell the difference though.