fixes push function and gets rid of some extra testing stuff.