fixed segmenation fault. stack runs but pop isnt quite right yet -MM