added debug pointer stack