removal of real stack code