hopefully added speed by making the main data structure static and global