Got rid of unnecessary code

removed loads of unnecessary pops and pushings of the global table