making globals into tables